<!--
 * @Descripttion: 边框样式
 * @version: 0.0.1
 * @Author: linchun
 * @Date: 2021年12月23日08:16:01
 * @LastEditors: linchun
 * @LastEditTime: 2021-12-24 10:47:38
-->
<template>
    <el-select v-model="val" @change="change">
        <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
        ></el-option>
    </el-select>
</template>
<script>
export default {
    props: ['value','type'],
    data() {
        return {
            val: this.value,
            options: [
                {
                    value: 'none',
                    label: '',
                },
                {
                    value: 'dotted',
                    label: '·······',
                },
                {
                    value: 'solid',
                    label: '────',
                },
                {
                    value: 'double',
                    label: '════',
                },
                {
                    value: 'dashed',
                    label: '------',
                },
                
            ],
        };
    },
    methods: {
        change(data) {
            this.$emit('change', {
                key:this.type,
                value:data
            });
        },
    },
};
</script>
